// --------------------------------------index首页--------------------------------------------------
import http from './config'
// 获取首页index数据
export const reqGetHome = () => http({ url: 'frontpage' })

// --------------------------------------login登录--------------------------------------------------
// 提交登录
export const reqLogin = (data: object) => http({ url: 'wx_login', method: 'POST', data })

// --------------------------------------newVaccine新冠疫苗预约--------------------------------------------------
// 获取newVaccine预约时间段数据
export const reqGetNewapptime = () => http({ url: 'newapptime' })
// 提交核算预约
export const reqRescovid = (data: object) => http({ url: 'rescovid', method: 'POST', data })
// 获取核算预约列表
export function reqCoviduserOrder() {
    return http({ url: 'coviduser_order' })
}
// 取消当前点击的预约列表
export function reqCovidCancel(params: string) {
    return http({ url: `covidcancel?_id=${params}` })
}

// --------------------------------------hpv预约--------------------------------------------------
// 获取hpv疫苗列表 
export const reqOtuhpv = () => http({ url: 'otuhpv' })
// hpv疫苗套餐
export const reqHpvPack = () => http({ url: 'hpv_pack' })
// 查询HPV套餐价格
export const reqHpvPrice = (data: object) => http({ url: 'hpv_price', method: "POST", data })
// 提交HPV疫苗预约     POST    /reshpv
export const reqHpvReshpv = (data: object) => http({ url: 'reshpv', method: "POST", data })
// HPV疫苗预约订单列表   /hpvuser_order
export const reqHpvuserOrder = () => http({ url: 'hpvuser_order' })

// 取消HPV预约     GET  /hpvcancel?query=
export function reqHpvCancel(params: string) {
    return http({ url: `hpvcancel?_id=${params}` })
}

// --------------------------------------AccountDetection核算检测预约--------------------------------------------------

// 获取核酸检测页面数据   GET   /nuataget
export const reqNuataget = () => http({ url: 'nuataget' })
// 提交核酸检测预约     POST    / resnuata
export const reqResnuata = (data: object) => http({ url: 'resnuata', method: 'POST', data })
// 核酸检测订单   GET    /nuatauser_order
export const reqNuatauserOrder = () => http({ url: 'nuatauser_order' })
// 取消核酸检测预约   GET    /nuatacancel?query=数据
export function reqNuatacancel(params: string) {
    return http({ url: `nuatacancel?_id=${params}` })
}
